﻿using GrainManage.Entities.Type;
using GrainManage.Server.Business;
using System.Web.Mvc;

namespace GrainManage.Server.Controllers
{
    public class TypeController : BaseController
    {
        private readonly TypeBusiness business = new TypeBusiness();

        //************************************************POST************************************************
        [HttpPost]
        public ActionResult GetNameByFlag(InputGetNameByFlag input)
        {
            var result = business.GetNameByFlag(input);
            return NewtonsoftJson(result);
        }
    }
}
